package com.ikun.hospayservice.feign;


import com.ikun.common.entity.Scheduling;
import lombok.extern.log4j.Log4j;
import lombok.extern.slf4j.Slf4j;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;

import java.time.LocalDate;

@FeignClient("hos-scheduling")
public interface SchedulingServiceFeignClient {

    /**
     * 增加余号数
     *
     * @param docId
     * @return
     */
    @RequestMapping("/Scheduling/add-surplus/{date}/{docId}/{timeId}")
    Scheduling addSurplus(@PathVariable String date, @PathVariable Integer docId, @PathVariable Integer timeId);

    /**
     * 减少余号数
     *
     * @param date
     * @param docId
     * @return
     */
    @RequestMapping("/Scheduling/reduce-surplus/{date}/{docId}/{timeId}")
    Scheduling reduceSurplus(@PathVariable String date, @PathVariable Integer docId, @PathVariable Integer timeId);
}
